home *** CD-ROM | disk | FTP | other *** search
- /*
- File: HFSTupleDatabase.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __HFSTUPLEDATABASE__
- #define __HFSTUPLEDATABASE__
-
- #ifndef __TUPLEDATABASE__
- #include "TupleDatabase.h"
- #endif
-
- #ifndef __FILESPEC__
- #include "FileSpec.h"
- #endif
-
- /***********************************|****************************************/
-
- class THFSTupleDatabase : public ATupleDatabase
- {
- public: THFSTupleDatabase ();
- THFSTupleDatabase ( const TFolderSpec& );
- virtual ~THFSTupleDatabase ();
-
- virtual Boolean SetTuple ( const ATupleKey&, const ADataItem& );
- virtual Boolean GetTupleData ( const ATupleKey&, ADataItem& );
- virtual Boolean GetTupleKey ( unsigned long index, ATupleKey& );
- virtual Boolean GetTupleDataSize ( const ATupleKey&, unsigned long& );
- virtual Boolean DeleteTuple ( const ATupleKey& );
- virtual Boolean FindIndexOfTuple ( const ATupleKey&, unsigned long& index ) const;
- virtual Boolean DoesTupleExist ( const ATupleKey& ) const;
- virtual unsigned long CountTuples () const;
- virtual void Flush ();
- virtual Boolean DeleteDatabase ();
-
- virtual ostream& operator >> ( ostream& ) const;
-
- protected: THFSTupleDatabase ( const THFSTupleDatabase& );
- THFSTupleDatabase& operator = ( const THFSTupleDatabase& );
- TFolderSpec fFolderSpec;
- };
-
- /***********************************|****************************************/
-
- #endif // __HFSTUPLEDATABASE__
-